package 结业考试;

import java.time.LocalDateTime;
import java.util.Scanner;

public class Time {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (true) {
            String input = scanner.next();
            if (input.equals("n")) {
                break;
            }else {
                LocalDateTime now = LocalDateTime.now();//调用当前时间
                System.out.println(now + "循环操作中~~~ 按n退出循环");
            }
        }
    }
}
//求实际时间